import PageRefresh, { IPageRefreshData } from '@/component/pageRefresh';
import { List, Stepper } from "antd-mobile-v5";
import './index.less';

export default function IndexPage() {
  return (
    <div className='wrap' >
      <PageRefresh<number>
        renderItem={(item, index) => <List.Item key={index}>{index}</List.Item>}
        func={(params) => {
          return new Promise<IPageRefreshData<number>>(res => {
            setTimeout(() => {
              res({
                total: 30,
                data: Array(10).fill(0)
              });
            }, 2000);
          })
        }}
      />
    </div>
  );
}
